package com.shop.shard.manager.order.impl;

import com.shop.shard.vo.order.OrderItemVO;
import com.shop.shard.mapper.order.OrderItemMapper;
import com.shop.shard.manager.order.OrderItemManager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
* @Description: TODO
* @author:
* @Createed Date: 2018/11/21-10:26
* @ModificationHistory: Who  When  What
* ---------     -------------   --------------------------------------
**/

@Service
public class OrderItemManagerImpl implements OrderItemManager {
    @Autowired
    OrderItemMapper orderItemMapper;
    @Override
    public IPage<OrderItemVO> getPage(Page page, Map<String,Object> map) {
        IPage<OrderItemVO> iPage=orderItemMapper.selectOwnPage(page,map);
        return iPage;
    }

    @Override
    public OrderItemVO selectDetailVoById(Long id) {
        OrderItemVO vo = orderItemMapper.selectDetailById(id);
        return vo;
    }
}